package com.chinasofti.etc.alcohol.service.impl;

import com.chinasofti.etc.alcohol.dao.model.Order;
import com.chinasofti.etc.alcohol.dao.OrderMapper;
import com.chinasofti.etc.alcohol.dao.model.OrderS;
import com.chinasofti.etc.alcohol.service.IOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lucas
 * @since 2019-05-30
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {

    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List<OrderS> orderQuery(String userNumber) {
        return orderMapper.orderQuery(userNumber);
    }

    @Override
    public void modify(int orderId, String orders) {
        orderMapper.modify(orderId,orders);
    }

    @Override
    public void addOne(Order order) {
       orderMapper.addOne(order);
    }

    @Override
    public List<Order> getNumber(String number) {
        return orderMapper.getNumber(number);
    }

    @Override
    public void modifyNo(String address, String orderNo) {
        orderMapper.modifyNo(address,orderNo);
    }
}
